You are here: Routing Rules > User Condition
Syntax samples
<Boolean expression> {<expression>}
Selects one of several locations listed in a routing block based upon a user-defined condition. Several User-Condition routings usually are used in the same routing block. At least one of the user-defined conditions in a block must be true or an error message will appear and the simulation will terminate. Capacity must be available at the location before the routing actually takes place. Unlike most primary routing rules, an ALTERNATE or BACKUP routing may be specified after each USER CONDITION routing in the same routing block.
The rule field of the Routing edit table only.
Components
<Boolean expression>
Any expression which evaluates to TRUE or FALSE.
<expression>
The total entities output from the process. This expression is valid only for the first routing of a routing block. For more information on this expression, see Processing.
Example
Customers bring their cars to a local service station for emissions testing and state inspection. After each car completes a 10-minute inspection operation at location Inspect, they are put in the proper service bay depending on the car’s engine type. Late-model (post-1975) cars are tested in Bays 1 and 2, pre-1975 cars are tested in Bay3, and diesel engine cars are tested in Bay4. If Bay1 is selected but not available, an alternate location (Bay2) is selected. If both Bay1 and Bay2 are down, a backup location (Bay3) is selected. Bay3 also has an alternate location (Bay4) in case it is unavailable, but has no backup location. Bay4 has neither an alternate location nor a backup location.
Process Table
Entity |
Location |
Operation (min) |
---|---|---|
CAR |
Inspect |
WAIT 10 |
Routing Table
Blk |
Output |
Destination |
Rule |
Move Logic |
---|---|---|---|---|
1 |
CAR |
Bay1 |
IF Type=1 1 |
|
CAR |
Bay2 |
ALT |
|
|
CAR |
Bay3 |
BACKUP |
|
|
CAR |
Bay3 |
IF Type=2 |
|
|
CAR |
Bay4 |
ALT |
|
|
CAR |
Bay4 |
IF Type=3 |
|